<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.com"
      xmlns:shiro="https://www.thymeleaf.org/thymeleaf-extres-shiro"   >
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="shortcut icon" href="#"/>
</head>
<body>
<h1>index</h1>
<div th:if="${session.account != null}">
    <span th:text="${session.account.username}">欢迎回来</span><a href="/logout">退出</a>
</div>
<a href="/main">main</a>||
<div shiro:hasPermission="manage">
    <a href="/manage">manage</a>||
</div>
<a href="admin">admin</a>||
    <a href="user/add">添加</a>||
<div shiro:hasPermission="user:update">
    <a href="user/update">修改</a>||
</div>
</body>
</html>
